# Create your views here.
from models import Post,Page,Website,Categorie,Slogan,CloseBlog,Title
from django.shortcuts import render_to_response

def blog(request):
 post = Post.objects.all().order_by("-created")
 website = Website.objects.all()
 categorie= Categorie.objects.all()
 slogan = Slogan.objects.all()
 closeblog=CloseBlog.objects.all()
 title=Title.objects.all()
 return render_to_response("blog.html",locals())
 
def website(request):
 website = Website.objects.all()
 return render_to_response("blog.html",{'website':website})
 
 
def page(request):
 page= Page.objects.all().order_by("-created")
 post = Post.objects.all().order_by("-created")
 website = Website.objects.all()
 categorie= Categorie.objects.all()
 slogan = Slogan.objects.all()
 return render_to_response("page.html",locals()) 

 
